if (private->width != width ||
private->height != height)
{
+ cairo_t *cr;
+
private->width = width;
private->height = height;
height,
private->depth);
- gc = _gdk_drawable_get_scratch_gc (offscreen->pixmap, FALSE);
- gdk_draw_drawable (offscreen->pixmap,
- gc,
- old_pixmap,
- 0,0, 0, 0,
- -1, -1);
- g_object_unref (old_pixmap);
+ cr = gdk_cairo_create (offscreen->pixmap);
+ gdk_cairo_set_source_pixmap (cr, old_pixmap, 0, 0);
+ cairo_paint (cr);
+ cairo_destroy (cr);
}
if (GDK_WINDOW_IS_MAPPED (private))